package com.epower.dao.epowerwordforday;

import com.epower.dataobject.EpowerWordForDayDO;

import java.util.Date;
import java.util.List;
/***
 * DAO接口层
 * @author QuickDev
 *
 */
public interface EpowerWordForDayDAO {
	//查询操作
	public EpowerWordForDayDO getEpowerWordForDayByOption(EpowerWordForDayDO epowerWordForDay);
	public List<EpowerWordForDayDO> getEpowerWordForDayListByOption(EpowerWordForDayDO epowerWordForDay);
	public EpowerWordForDayDO getEpowerWordForDayById(Integer id);
	//删除操作
	public boolean deleteEpowerWordForDayById(Integer id);
	public Integer getEpowerWordForDayCountByOption(EpowerWordForDayDO epowerWordForDay);
	//更新操作
	//添加操作
	public boolean  updateEpowerWordForDayByOption(EpowerWordForDayDO epowerWordForDay);
	public Integer addEpowerWordForDay(EpowerWordForDayDO epowerWordForDay);
	public List<EpowerWordForDayDO> getMainEpowerWordForDayBySpelling(String spelling);
	/**
	 * @param spelling
	 * @return
	 */
	public List<EpowerWordForDayDO> queryEpowerMainWordBySpelling(String spelling);
	
	public EpowerWordForDayDO getEpowerMainWordByDate(Date date);
	
	public List<EpowerWordForDayDO> queryEpowerMainWordByGroupid(int groupid);
}